package com.yhally.seata.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yhally.seata.order.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 *
 * @author wangyu
 * @version 1.0
 * @date 2022/5/6 23:00
 */
@Mapper
public interface OrderDao extends BaseMapper<Order> {

    /**
     * <p>描述: 创建订单
     * <p>开发者: wangyu
     * <p>时间: 2022/5/8 17:04
     *
     * @param order
     * @return void
     */
    void create(Order order);

    /**
     * <p>描述: 修改订单状态
     * <p>开发者: wangyu
     * <p>时间: 2022/5/8 17:05
     *
     * @param userId
     * @param status
     * @return void
     */
    void updateOrder(@Param("userId") Long userId,@Param("status")Integer status);

}


